package tds.model24.version2;

import java.util.Date;

/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName BakeChikenWing
 * @Description 烤鸡翅
 * @author tds
 * @Date 2020/2/6 21:40
 * @version 1.0.0
 */
public class BakeChikenWing implements Order{

    private Chef chef;

    public BakeChikenWing(Chef chef) {
        this.chef = chef;
    }

    @Override
    public void execute() {
        System.out.println("记录日志：烤鸡翅" + new Date());
        chef.cook("烤鸡翅");
    }
}
